#include<iostream>
using namespace std;
int main()
{
	const char* arr[12] = { "January"," February","March","April","May","June","July","Aguest","September","October","November","December" };
	int t;
	cin >> t;
	for (int i = 0; i < t; i++) {
		int j;
		cin >> j;
		if (0 < j && j < 13) {
			cout << arr[j - 1] << endl;
		}
		else {
			cout << "error" << endl;
		}
	}
}